package response

import (
	"gitcode.com/G-YT/ANN/server/global"
	"gitcode.com/G-YT/ANN/server/model/system"
)

type SysUserResponse struct {
	User system.SysUser `json:"user"`
}

type LoginResponse struct {
	User      system.SysUser `json:"user"`
	Token     string         `json:"token"`
	ExpiresAt int64          `json:"expiresAt"`
}

type HealthManageCenter struct {
	global.GVA_MODEL
	Name     string `json:"name" form:"name" gorm:"column:name;comment:分公司名称;"`
	Nickname string `json:"nickname" form:"nickname" gorm:"column:nickname;comment:城市分公司昵称;"`
	Creator  uint   `json:"creator" form:"creator" gorm:"default:1;comment:创建者"`
}

type MapData struct {
	CountNums []CountNum `json:"data"`
}

type StationMapData struct {
	CountNums []CountNum `json:"list"`
	Centre    [2]float64 `json:"centre"`
	Province  string     `json:"province"`
}

// CountNum 统计数量
type CountNum struct {
	Name      string     `json:"name" form:"name"`
	Value     uint       `json:"value" form:"value"`
	LonAndLat [2]float64 `json:"coord"`
}

type StatisticalResults struct {
	Name  string `json:"name" form:"name"`
	Value uint   `json:"value" form:"value"`
	IDs   string `json:"IDs" form:"IDs"`
}

type MainDiseaseList struct {
	Name    string `json:"name" form:"name"`
	Disease string `json:"disease" form:"disease"`
}

type ServiceStations struct {
	ID            uint   `json:"id" gorm:"id"`                              // 用户ID
	NickName      string `json:"nick_name" gorm:"nick_name"`                // 管理人
	Phone         string `json:"phone" gorm:"phone"`                        // 手机号
	Name          string `json:"name" gorm:"name"`                          // 服务站名称
	ServiceCenter string `json:"serviceCenter" gorm:"column:serviceCenter"` // 服务中心
	Province      string `json:"province" form:"province"`                  // 省
	City          string `json:"city" form:"city"`                          // 市
	Area          string `json:"area" form:"area"`                          // 区
}
